﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using EazyCMS.DBUtility;

namespace EazyCMS.Web.tools
{
    /// <summary>
    /// Handler1 的摘要说明
    /// </summary>
    public class get_all_total_num : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string sql = "select totalnum from dbo.dt_total_num where id=1";
            DataTable dt = DbHelperSQL.ExecuteDataSet(sql);
            string totalnum = dt.Rows[0]["totalnum"].ToString();
            context.Response.Write(totalnum);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}